package com.zrb.mobile;

import com.zrb.applib.utils.AppSetting;
import com.zrb.mobile.register.User_phone_login;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

public class User_changenamefragment extends Fragment implements OnClickListener{

	View RootView;
	LinearLayout myinfoView;
	
	View loginbtn,bottomLayout,logoview;
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState) {	
		//return inflater.inflate(R.layout.u_center_registerstep1, null);		
		
		View view = inflater.inflate(R.layout.u_my_changename, container, false);
		RootView=view;
		//initView();
 		return RootView;
	}	
	
	
	private void initView() {
 	
 		 
		  TextView titletxt=  (TextView)RootView.findViewById(R.id.txt_title);
		  titletxt.setText("�ҵ���ҳ");
		  
		  ImageView rightimg=  (ImageView)RootView.findViewById(R.id.img_right_icon);
		  rightimg.setVisibility(View.VISIBLE);
		  rightimg.setOnClickListener(this);
		//this.findViewById(R.id.register_up_sms_click).setOnClickListener(this);
		//this.findViewById(R.id.button_register).setOnClickListener(this);
       
	}

	@Override
	public void onResume(){
		
		super.onResume();
		//if (this.getUserVisibleHint())   showRelateview();
	}
	
 
	
	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch (v.getId()) {

	 
		case R.id.txt_register:
		/*	Intent it = new Intent(this.getActivity(), User_registerChoose.class);
			 startActivity(it);*/
			break;
		case R.id.login_btn:
			//OnshowChanged();
			 Intent it2 = new Intent(this.getActivity(), User_phone_login.class);
			 startActivity(it2);
			break;
		case R.id.img_right_icon:
			//OnshowChanged();
			 Intent it3 = new Intent(this.getActivity(), User_app_setting.class);
			 startActivity(it3);
			break;
			
		case R.id.re_myinfo:
			 Intent it4 = new Intent(this.getActivity(), User_my_baseInfo.class);
			 startActivity(it4);
 			break;
		}

	}

}